<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <title>Add css & js to Thymeleaf</title>
    <link th:href="@{/css/main.css}" rel="stylesheet">
    <script type="text/javascript" th:src="@{/js/action.js}"></script>
</head>
<body>
<h2>Heading</h2>
<p>
    This is text on which we want to apply<strong> very special </strong> styling.
</p>
<button type="button" th:onclick="demo()">Click Me!</button>
</body>
</html>